package com.cj.startup.simple.task

import android.content.Context
import com.cj.startup.AndroidStartup
import com.cj.startup.Startup

class Task5 : AndroidStartup<Any?>() {
    /**
     * 初始化逻辑
     */
    override fun create(context: Context): Any? {
        println("--------------Task5 thread:${Thread.currentThread().name}")
        return 5
    }

    override fun dependencies(): MutableList<Class<out Startup<*>>>? {
        return mutableListOf(Task3::class.java)
    }

    override fun waitOnMainThread(): Boolean = true
}